#pragma once
#include "SGObject.h"

class CSGScaled : public CSGObject
{
public:
	CSGScaled(){scaled0 = scaled1 = scaled2 = 1.0;};

	CSGScaled(double sc0, double sc1, double sc2){
		scaled0 = sc0;
		scaled1 = sc1;
		scaled2 = sc2;}

	CSGScaled(double sc) {scaled0 = scaled1 = scaled2 = sc;}
	~CSGScaled(){}
	
	virtual void Render(){
		glPushMatrix();
		glScaled(scaled0,scaled1,scaled2);
		CSGObject::Render();
		glPopMatrix();}

private:
	double scaled0;
	double scaled1;
	double scaled2;
};